<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>success.jsp</title>
</head>
<body>
<%--  ${param.username}  EL表达式 ${key}  param获取请求参数中的数据 --%>
<h1 style="color: green">登录成功，欢迎 ${param.username}</h1>

<%--  ${request.user.username}  EL表达式 ${key}  request获取请求域中属性 --%>
<h1 style="color: seagreen">登录成功，欢迎 ${requestScope.user.username}</h1>
<%--  ${sessionScope.user.username}  EL表达式 ${key}  session获取会话域中属性 --%>
<h1 style="color: orangered">登录成功，欢迎 ${sessionScope.sessionUser.username}</h1>

<a href="/jsp/a.jsp">访问a.jsp</a>
<a href="/jsp/b.jsp">访问b.jsp</a>

<br/>
<a href="/user?method=logout">登出</a>
<br/>
<a href="/items?method=viewAll">查看商品列表</a>
</body>
</html>